<!DOCTYPE HTML>
<html>
<head>
<#include "WEB-INF/view/_frag/meta.ftl">
<#include "WEB-INF/view/_frag/jscss.ftl">
<title>员工管理</title>
</head>
<body>
	<nav class="breadcrumb">
		<i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 系统管理 <span class="c-gray en">&gt;</span> 员工管理 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
	</nav>
	<div class="page-container">
		<form action="${basePath}/employee/list" method="post" class="form form-horizontal">
			<div class="row cl">
				&nbsp;&nbsp;&nbsp;&nbsp;真实姓名：
				<input type="text" class="input-text radius" style="width:120px" id="" name="employee.cEMName" value="${employee.cemname}">
				&nbsp;&nbsp;&nbsp;&nbsp;<button type="submit" class="btn btn-success radius" id="" name="" ><i class="Hui-iconfont">&#xe665;</i> 查询</button>
			</div>
		</form>
 	 	 
  		<div class="cl pd-5 bg-1 bk-gray mt-20">
  			<span class="l"> <a href="${basePath}/systemUser/toOper" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 添加账号</a></span>
  		</div>
   		
		<div class="mt-20">
			<table id="data-list" class="table table-border table-bordered table-hover table-bg table-sort">
				<thead>
					<tr class="text-c">	 
						<th>登录名</th>
						<th>真实姓名</th>
						<th>性别</th>
						<th>部门</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<#list page.dataList as employee>
					<tr class="text-c"> 
						<td>${employee.cemno}</td>
						<td>${employee.cemname}</td>
						<td> 
							${employee.bemsex}
						</td>
						<td>${employee.cemdeptno}</td>
						<!--<td>${member.role_name}</td> -->
						<td class="td-manage">
							<a title="编辑" href="${basePath}/systemUser/toOper?employee.cEMNo=${employee.cemno}"  class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a>
							<a title="删除" href="javascript:;" onclick="del('${employee.cemno}')" class="ml-5" style="text-decoration: none"><i class="Hui-iconfont">&#xe6e2;</i></a>
						</td>
					</tr>
					</#list>
				</tbody>
			</table>
		</div>
		<div class="pd-5 mt-20" id="jsPage"></div>
	</div> 

<script type="text/javascript">
	${page.jsPage}

	function del(no) {
		layer.confirm('确定要删除吗？', {
				btn : [ '确定', '取消' ]
			}, function() {
				window.location.href = '${basePath}/systemUser/delete?employee.cemno=' + no;
			}, function() {
			});
	}

</script> 
</body>
</html>